import { users } from './users.entity';
import { Injectable } from "@nestjs/common";
import { InjectRepository } from "@nestjs/typeorm";
import {Repository} from 'typeorm'

@Injectable()
export class usersService {
    constructor(@InjectRepository(users) private userRep:Repository<users>) { }

    getAll(): Promise<users[]>{
        
        return this.userRep.find()
    }


}